package exp2;

import java.awt.datatransfer.StringSelection;
import java.util.ArrayList;

/**
 * Created by Veronica on 2017/4/20.
 */
public class PrintArrays03 {
    //在4后面添加5
    public static void main(String[] args) {
        int arr[] = {1, 2, 3, 4, 6, 7, 8, 0};
        for (int i=7;i>4;--i){
            arr[i] = arr[i-1];
        }
        for (int i:arr){
            System.out.print(i + ",");
        }
        System.out.println( );

    }
}
